﻿@model IEnumerable<SMWJamecl.BusinessEntities.Vehiculo>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Buscar Vehiculos</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>

@using (Html.BeginForm())
{ 
    <fieldset>
        <legend>Buscar</legend>
        <b>Criterio:</b>
        @Html.TextBox("Criterio")
        <input type ="submit" name="btnBuscar" value="Buscar" />
    </fieldset>  
}

<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Placa)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Id_Version)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Color)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Anio_Fabricacion)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NroMotor)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NroSerie)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NroChasis)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NroAsientos)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Id_DetalleAccesorio)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Kilometraje)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Id_Combustible)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Estado)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Placa)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Id_Version)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Color)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Anio_Fabricacion)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NroMotor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NroSerie)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NroChasis)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NroAsientos)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Id_DetalleAccesorio)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Kilometraje)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Id_Combustible)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Estado)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
